package com.yuan.esdemo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.elasticsearch.annotations.Document;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(indexName = "movies", type = "_doc")
public class Movies {

    private String id;
    private String title;
    private String[] genre;
    private Long year;
}
